home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / SystemProcess / SysProc.r < prev   
Encoding:
Text File  |  1997-02-13  |  6.7 KB  |  229 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SysProc.r
  3.  
  4.     Contains:    Resources for the system process
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1996 - 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <18>      1/8/97    DH        1401434: Added string resource for missing
  13.                                     document message.
  14.         <17>      12/18/96    DH        1375780: Added error message for opening
  15.                                     read only docs with too large doc size.
  16.         <16>    02.10.1996    NP        1391011: hard-coded strings
  17.         <15>    27.09.1996    NP        Debug build change only
  18.         <14>    11.09.1996    NP        1386084: new string
  19.         <12>     7/17/96    TJ        Removed include ODCWDebugDefine.h and added
  20.                                     it to the prefix file.
  21.         <11>    16.07.1996    NP        1364800: Bump partition for debug builds.
  22.         <10>    02.07.1996    NP        1364355: Can't build stationery.
  23.          <9>     6/26/96    NP        10002: Launch time speedups.
  24.          <8>     6/23/96    NP        10002: Launch time speedups.
  25.          <7>     6/19/96    NP        10002: Launch time speedups.
  26.          <6>     6/18/96    NP        10002: Launch time speedups.
  27.          <5>     6/14/96    NP        10002: Launch time speedups
  28.          <4>      6/6/96    jpa        Include from 68K/PPC .rsrc file as
  29.                                     appropriate, so CW 68K project can build.
  30.          <3>    .06.1996    NP        Added BNDL, FREF and odtm resources.
  31.          <2>    .06.1996    NP        10002: Launch time fixes, system process.
  32.          <1>    .05.1996    NP        first checked in
  33.  
  34.     To Do:
  35.     In Progress:
  36.         
  37. */
  38.  
  39. #ifndef _SHELLDEF_
  40. #include "ShellDef.h"
  41. #endif
  42.  
  43. #ifndef __TYPES_R__
  44. #include "Types.r"
  45. #endif
  46.  
  47. #ifndef __AEUSERTERMTYPES__
  48. #include "AEUserTermTypes.r"
  49. #endif
  50.  
  51. #define kODSysProcRsrcBase kODShellRsrcBase
  52.  
  53. include "DocStub.rsrc";
  54.  
  55. //=============================================================================
  56. // "Size" resources
  57. //=============================================================================
  58.  
  59. //=============================================================================
  60. // SIZE resource
  61. //=============================================================================
  62.  
  63. resource 'SIZE' (-1) {
  64.     reserved,
  65.     acceptSuspendResumeEvents,
  66.     reserved,
  67.     canBackground,
  68.     multiFinderAware,
  69.     onlyBackground,
  70.     dontGetFrontClicks,
  71.     acceptChildDiedEvents,
  72.     is32BitCompatible,
  73.     isHighLevelEventAware,
  74.     localAndRemoteHLEvents,
  75.     isStationeryAware,
  76.     dontUseTextEditServices,
  77.     reserved,
  78.     reserved,
  79.     reserved,
  80. #if ODDebug
  81.     250*1024,
  82.     250*1024
  83. #else
  84.     200*1024,
  85.     200*1024
  86. #endif
  87. };
  88.  
  89. //-----------------------------------------------------------------------------
  90. // scsz resource for AppleScript
  91. //-----------------------------------------------------------------------------
  92.  
  93. resource 'scsz' (0) {
  94.     dontLaunchToGetTerminology,
  95.     dontFindAppBySignature,
  96.     dontAlwaysSendSubject,
  97.     reserved,
  98.     reserved,
  99.     reserved,
  100.     reserved,
  101.     reserved,
  102.     reserved,
  103.     reserved,
  104.     reserved,
  105.     reserved,
  106.     reserved,
  107.     reserved,
  108.     reserved,
  109.     reserved,
  110.     0,
  111.     0,
  112.     0,
  113.     0,
  114.     0,
  115.     0
  116. };
  117.  
  118. //=============================================================================
  119. // String resources
  120. //=============================================================================
  121.  
  122. //-----------------------------------------------------------------------------
  123. // STR
  124. //-----------------------------------------------------------------------------
  125.  
  126. // Default string that CFM 68K-built apps look for when CFM 68K is not
  127. //    installed
  128.  
  129. #if GENERATING68K
  130. resource 'STR ' (-20029) {
  131.     "OpenDoc requires the CFM-68K Runtime Enabler, which is missing. Try"
  132.     " reinstalling OpenDoc."
  133. };
  134. #endif
  135.  
  136. resource 'STR ' (kODSPStrCannotOpenRODocSizeErrMsg) {
  137.     "This document cannot be opened because it needs more memory than is "
  138.     "available right now, and because it is a read-only document, you "
  139.     "cannot adjust its memory size. Try opening a modifiable copy and "
  140.     "select Decrease Memory."
  141. };
  142. include "Shell.rsrc" 'STR ' (kSHLPrefsFileNameResID);
  143. include "Shell.rsrc" 'STR ' (kSHLPrefsFolderNameResID);
  144. include "Shell.rsrc" 'STR ' (kSHLLauncherNameResID);
  145. include "Shell.rsrc" 'STR ' (kSHLOldLauncherNameResID);
  146.  
  147. //-----------------------------------------------------------------------------
  148. // STR#
  149. //-----------------------------------------------------------------------------
  150.  
  151. resource 'STR#' (kODSysProcStringsID, purgeable) {
  152.     {
  153.         /* [1] */ "Could not open the OpenDoc™ document “^0” because ^1.",
  154.         /* [2] */ "Could not open the OpenDoc™ document “^0” because of an"
  155.                     " error ^1.",
  156.         /* [3] */ "Could not open an OpenDoc™ document because of an error ^1.",
  157.         /* [4] */  "This version of OpenDoc (^0) will not work on your system"
  158.                     " (^1). You must upgrade to system"
  159.                     " "kOD1pt2EarliestCompatibleSysVersStr" or later, or use an"
  160.                     " older version of OpenDoc. OpenDoc"
  161.                     " 1.1 will work on systems 7.1.2 and later.",
  162.         /* [5] */ "Not enough memory to open an OpenDoc document. Try quitting"
  163.                     "applications or closing documents to free more memory.",
  164.         /* [6] */ "An unrecoverable error has occurred while starting OpenDoc."
  165.                     "Please restart your system and try again.",
  166.         /* [7] */ "Could not reopen your document because of an unknown error.",
  167.         /* [8] */ "Could not reopen your document because it is missing. It may "
  168.                     "be the trash."
  169.         /* [xx] */ /* "Could not open an OpenDoc™ document for unknown reasons,"
  170.                     " possibly out of memory. Try quitting other documents or"
  171.                     " applications.", */
  172.     }
  173. };
  174.  
  175. #if GENERATING68K
  176. include "OpenDoc™ 68K.rsrc" 'STR#';
  177. #else
  178. include "OpenDoc™ PPC.rsrc" 'STR#';
  179. #endif
  180.  
  181. //=============================================================================
  182. // Creator/file type/bundle stuff
  183. //=============================================================================
  184.  
  185. include "OpenDocX.res" 'odtm';
  186. include "OpenDocX.res" 'cfmg';
  187.  
  188. include "OpenDocX.res" 'BNDL';
  189. include "OpenDocX.res" 'FREF';
  190. include "OpenDocX.res" 'icl4';
  191. include "OpenDocX.res" 'icl8';
  192. include "OpenDocX.res" 'ICN#';
  193. include "OpenDocX.res" 'ics#';
  194. include "OpenDocX.res" 'ics4';
  195. include "OpenDocX.res" 'ics8';
  196.  
  197. //=============================================================================
  198. // Misc
  199. //=============================================================================
  200.  
  201. /* This resource is used by OpenDoc Setup to figure out if an app is
  202.     the old launcher or the system process */
  203. #define COMPATIBLEWITHSYSTEMPROCESS 0
  204. #if COMPATIBLEWITHSYSTEMPROCESS
  205. data kODSystemProcessSignature (0)
  206. {
  207.     ""
  208. };
  209. #endif /* COMPATIBLEWITHSYSTEMPROCESS */
  210.  
  211. // THESE RESOURCES SHOULD BE RIPPED OUT. THE CODE THAT USES THEM IS FROM
  212. //    THE OPENDOC SETUP CONTROL PANEL AND SHOULD BE REWRITTEN.
  213.  
  214. // For BetterFindFolder code, in BetterFindFolder.cpp
  215. data 'BFld' (128, "ODPF") {
  216.     $"7072 6566 0D4F 7065 6E44 6F63 2050 7265"            /* pref¬OpenDoc Pre */
  217.     $"6673 0000 0000 0000 0000 0000 0000 0000"            /* fs.............. */
  218.     $"0000 0000 0100 0000"                                /* ........ */
  219. };
  220.  
  221. // For OpenODPrefsResFile code, in PrefsFile.cpp
  222. resource 'STR#' (128, "Misc. Strings", purgeable) {
  223.     {    /* array StringArray: 1 elements */
  224.         /* [1] */
  225.         "OpenDoc Preferences"
  226.     }
  227. };
  228.  
  229.